package com.wanxi.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wanxi.model.Manager;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Set;

/**
 * @author Chengbo Zhang
 */
@Mapper
public interface ManagerDao extends BaseMapper<Manager> {
    Manager findByName(String managerName);

    List<Manager> findAll();

    Manager findById(Long managerId);

    Integer addRoles(Long id ,Long managerId, Long roleId);

    Integer deleteRoleOfManager(Manager manager);
}
